import request from '@/utils/request'

// 查询配送计划列表
export function listNcDistributionPlan(query) {
  return request({
    url: '/business/ncDistributionPlan/list',
    method: 'get',
    params: query
  })
}

// 查询配送计划详细
export function getNcDistributionPlan(id) {
  return request({
    url: '/business/ncDistributionPlan/' + id,
    method: 'get'
  })
}

// 新增配送计划
export function addNcDistributionPlan(data) {
  return request({
    url: '/business/ncDistributionPlan',
    method: 'post',
    data: data
  })
}

// 修改配送计划
export function updateNcDistributionPlan(data) {
  return request({
    url: '/business/ncDistributionPlan',
    method: 'put',
    data: data
  })
}

// 删除配送计划
export function delNcDistributionPlan(id) {
  return request({
    url: '/business/ncDistributionPlan/' + id,
    method: 'delete'
  })
}
